package com.example.demo_330;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class TestActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mainlayout);

        Button button = (Button) findViewById(R.id.xx);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,LinerLayoutActivity.class);
                startActivity(intent);
            }
        });

        Button button1 = (Button) findViewById(R.id.bg);
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,TableActivity.class);
                startActivity(intent);
            }
        });

        Button button2 = (Button) findViewById(R.id.z);
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,FrameActivity.class);
                startActivity(intent);
            }
        });

        Button button3 = (Button) findViewById(R.id.xd);
        button3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,RelativeActivity.class);
                startActivity(intent);
            }
        });

        Button button4 = (Button) findViewById(R.id.wg);
        button4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,GridActivity.class);
                startActivity(intent);
            }
        });

        Button button5 = (Button) findViewById(R.id.ys);
        button5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,ConstraintActivity.class);
                startActivity(intent);
            }
        });

        Button button6 = (Button) findViewById(R.id.jd);
        button6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TestActivity.this,AbsoluteActivity.class);
                startActivity(intent);
            }
        });


    }


}
